﻿@using FormMethod = Microsoft.AspNetCore.Mvc.Rendering.FormMethod
<h1>Login View</h1>
<p>@Html.ActionLink("Register", "Register", "Account")</p>
@using (Html.BeginForm("Login", "Account", FormMethod.Post))
{
    @Html.AntiForgeryToken()
    ;
    if (!string.IsNullOrWhiteSpace(ViewBag.ErrorMessage))
    {
        <p>**@ViewBag.ErrorMessage**</p>
    }
    <p>
        User Name: <input name="UserName"/>
    </p>
    <p>
        Password: <input name="Password" type="password"/>
    </p>
    <p>
        <input type="submit" value="Login"/>
    </p>
}